package com.xiaoq.logs.entity;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;

import java.io.Serializable;

/**
 * Created by chenjh on 2018/2/11.
 */
@Entity(value = "nginx_log", noClassnameStored = true)
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class NginxLog extends MongoEntity implements Serializable {
    private static final long serialVersionUID = 3199199826693234594L;

    private String remoteAddr;
    private String remoteUser;
    private String timeLocal;
    private String request;
    private int status;
    private long bodyBytesSent;
    private String referer;
    private String httpUserAgent;
    private String xff;
    private Double requestTime;
    private String upstreamResponseTime;
    private String upstreamAddr;
    private String upstreamStatus;
    private String token;
    private String userId;
    private String requestMethod;
    private String requestUrl;
    private String requestBody;
    
    
	public String getRemoteAddr() {
		return remoteAddr;
	}
	public void setRemoteAddr(String remoteAddr) {
		this.remoteAddr = remoteAddr;
	}
	public String getRemoteUser() {
		return remoteUser;
	}
	public void setRemoteUser(String remoteUser) {
		this.remoteUser = remoteUser;
	}
	public String getTimeLocal() {
		return timeLocal;
	}
	public void setTimeLocal(String timeLocal) {
		this.timeLocal = timeLocal;
	}
	public String getRequest() {
		return request;
	}
	public void setRequest(String request) {
		this.request = request;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public long getBodyBytesSent() {
		return bodyBytesSent;
	}
	public void setBodyBytesSent(long bodyBytesSent) {
		this.bodyBytesSent = bodyBytesSent;
	}
	public String getReferer() {
		return referer;
	}
	public void setReferer(String referer) {
		this.referer = referer;
	}
	public String getHttpUserAgent() {
		return httpUserAgent;
	}
	public void setHttpUserAgent(String httpUserAgent) {
		this.httpUserAgent = httpUserAgent;
	}
	public String getXff() {
		return xff;
	}
	public void setXff(String xff) {
		this.xff = xff;
	}
	public Double getRequestTime() {
		return requestTime;
	}
	public void setRequestTime(Double requestTime) {
		this.requestTime = requestTime;
	}
	public String getUpstreamResponseTime() {
		return upstreamResponseTime;
	}
	public void setUpstreamResponseTime(String upstreamResponseTime) {
		this.upstreamResponseTime = upstreamResponseTime;
	}
	public String getUpstreamAddr() {
		return upstreamAddr;
	}
	public void setUpstreamAddr(String upstreamAddr) {
		this.upstreamAddr = upstreamAddr;
	}
	public String getUpstreamStatus() {
		return upstreamStatus;
	}
	public void setUpstreamStatus(String upstreamStatus) {
		this.upstreamStatus = upstreamStatus;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getRequestMethod() {
		return requestMethod;
	}
	public void setRequestMethod(String requestMethod) {
		this.requestMethod = requestMethod;
	}
	public String getRequestUrl() {
		return requestUrl;
	}
	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}
	public String getRequestBody() {
		return requestBody;
	}
	public void setRequestBody(String requestBody) {
		this.requestBody = requestBody;
	}

//    private long count;
    
    
}
